x86emul: generate and make use of a canonical opcode representation
authorJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2016 07:53:40 +0000 (09:53 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 30 Sep 2016 07:53:40 +0000 (09:53 +0200)
commitab082ffa87d541a8e3b60c64b919dc0c84d1a27e
treed23dce3bcfedf01ef6e6720277aa672d7a321638
parent75066cd4ea56e615976fb846f225bc76504f867b
x86emul: generate and make use of a canonical opcode representation

This representation is then being made available to interested callers,
to facilitate replacing their custom decoding.

This entails combining the three main switch statements into one.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/tests/x86_emulator/x86_emulate.c
xen/arch/x86/x86_emulate/x86_emulate.c
xen/arch/x86/x86_emulate/x86_emulate.h